<!-- Main content wrapper -->
    <div class="wrapper">
	<form action="index.html" id="validate" class="form">
	<table style="text-align:left; width: 100%;">
		<tbody>
		<tr>
		
		<td>
				<div class="formRow" style="width: 300px; float:left; border-top-style: none; border-bottom-style: none;">
                        <label>Сумма вывода:</label>
                        <div class="formRight" style="width: 190px; float:left; margin-right: 0px; margin-left: 18px;"><input type="text" class="validate[required]" name="req" id="req"/></div>
                </div>
		</td>
		
		<td>
		<div class="formRow" style="width: 270px; float:right; border-top-style: none; border-bottom-style: none;">
                        <label>Валюта:</label>
                        <div class="formRight" style="width: 200px; float:left; margin-right: 0px; margin-left: 18px;">
                            <select name="select2" >
                                <option value="opt1">UAH</option>
                                <option value="opt2">USD</option>
                            </select>           
                        </div>             
                    </div>
		</td>
		
		<td>
				<div class="formRow" style="width: 290px; float:left; border-top-style: none; border-bottom-style: none;">
                        <label>С учетом курса валюты:</label>
                        <div class="formRight" style="width: 100px; float:left; margin-right: 0px; margin-left: 18px;"><input type="text" class="validate[required]" name="req" id="req"/></div>
                </div>
		</td>
		
		</tr>
		</tbody>
		</table>
		
				<a class="button greenB" style="float:right; margin-top:120px;" title="" href="#"><span>Отправить заявку</span></a>
				
		<table style="width: 40%;">
		<tbody>
		<tr>
		
		<td>
		<img src="/images/img.png" alt="" />
		</td>
		
		<td>
		<img src="/images/img.png" alt="" />
		</td>
		
		</tr>
		<tr>
		
		<td>
		<div class="formRow" style="border-top-style: none; border-bottom-style: none;">
                        <div class="formRight">
                            <input type="radio" name="radio1" id="radio1" /><label for="radio1">вывод ваером</label>
        				</div>
                        </div><div class="clear"></div>
		</td>
		
		<td>
		<div class="formRow" style="border-top-style: none; border-bottom-style: none;">
                        <div class="formRight">
                            <input type="radio" name="radio2" id="radio2" /><label for="radio2">webmoney</label>
							</div>
                        </div><div class="clear"></div>
		</td>
		
		</tr>
		</tbody>
		</table>

		</form>
		
		    <div class="line" style="margin-top: 10px;"></div>
		
					<table style="margin-right:auto; margin-left:auto;">
					<tbody>
					<tr>
				<td>
					<div class="formRow" style="padding:0;">
                    <label>Starting date:</label>
                    <div class="formRight" style="float:none; margin-right:0; padding-top:5px; margin-left: 80px; width: 180px;">
                        <input type="text" class="datepicker" />
                    </div>
                </div>
				</td>
				
				<td>
				<div class="formRow" style="padding:0;">
                    <label>End date:</label>
                    <div class="formRight" style="float:none; margin-right:0; padding-top:5px; margin-left: 60px; width: 180px;">
                        <input type="text" class="datepicker" />
                    </div>
                </div>
				</td>
				<td>
				<a class="button greenB" style="margin: 5px;" title="" href="#"><span>построить таблицу</span></a>
				</td>
					</tr>
					</tbody>
					</table>
					
			<div class="widget">
            <div class="title"><img src="/images/icons/dark/full2.png" alt="" class="titleIcon" /><h6>История заявок на вывод</h6></div>
            <table cellpadding="0" cellspacing="0" border="0" class="display dTable">
            <thead>
            <tr>
            <th>Дата</th>
            <th>Сумма</th>
            <th>Платежка</th>
            <th>Состояние заявки</th>
            </tr>
            </thead>
            <tbody>
                <?php
                if (!empty($this->transaction)) {
                foreach ($this->transaction as $trans) {
                    if ($trans['id_type_payment'] == 1) {
                    echo '<tr class="gradeA">';
                    }
                    elseif ($trans['id_type_payment'] == 2) {
                    echo '<tr class="gradeB">';
                    }
                    elseif ($trans['id_type_payment'] == 3) {
                    echo '<tr class="gradeX">';
                    }
                    
                    if ($trans['id_status_transaction'] == 2) {
                    echo '<td><a href="#" title="">'.date("d-m-Y",strtotime($trans['date'])).'</a></td>';
                    echo '<td>'. $trans['amount']."$". '</td>';
                    
                    if ($trans['id_type_payment'] == 1){
                        echo '<td>webmoney</td>';
                    }
                    
                    elseif ($trans['id_type_payment'] == 2) {
                      echo  '<td>non-cash payment</td>';
                    }
                    
                    elseif ($trans['id_type_payment'] == 3) {
                      echo  '<td>wire</td>';
                    }
                    
                    }
                    if($trans['id_status_payment'] == 1){
                    echo '<td>выполнена</td>';
                    }
                    elseif($trans['id_status_payment'] == 2) {
                        echo '<td>отклонена</td>';
                    }
                    echo '</tr>';
                }
                }
                ?>
                
            </tbody>
            </table>  
        </div>
				
		</div>
